package com.vpen.account.demo.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.vpen.account.demo.model.enums.UserStateEnum;
import com.vpen.clib.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * (AccountUser)表实体类
 *
 * @author vpen
 * @since 2022-08-12 14:01:40
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class AccountUser extends Model<AccountUser> implements BaseEntity {
    private Long id;


    private String username;


    private String password;

    private String phone;


    private String nickname;
    

    private UserStateEnum state;


    private Long createUserId;


    private LocalDateTime createTime;


    private LocalDateTime updateTime;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

